-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start OCC for the second CPU #94
Start OCC for the second CPU #94
Conversation
e204ce5
to
f780239
Compare
d1806e4
to
ae8e8a0
Compare
f780239
to
c06c615
Compare
c06c615
to
beb8402
Compare
@SergiiDmytruk please rebase it, for some reason GitHub shows lines that are already changed in |
beb8402
to
ea16333
Compare
Change-Id: Ic33d97fa41ee88dd1833084cbca670ec984700c1 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I104ed3e1acd518dc3a03d4483ee6b65ca1f45e4c Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Otherwise SGPE won't start. Our initialization sequence is missing something which enables SCOMs to CMEs even for the master CPU (only two out of four work). This however isn't an issue as skiboot seems to reset SGPEs in a way that enables everything. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Loop over CPUs on each step except for those which target master OCC only. Change-Id: I3b9f7f09cffa2de5372b9d07c45d47cfd16bebc9 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Its value is 32. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
6e3f244
to
2b2917c
Compare
By the way, "OCC" partition is still read twice (costing us an extra 400ms) only because I'm not sure what would be a good new place for "HCODE". Looks like can use common OCC area, any better place for it (maybe just use |
|
What about WOF, is it also loaded twice? |
We don't read it all, only readat header, mmap list of entries and then mmap entry that we need. |
Tried it in d653b55, but something is wrong with FIT:
|
This is expected output from FIT so far, last line is truncated. Next printed line would be I don't see any issue with linked commit so it will require deeper debugging, but for now this isn't a priority. |
Just reduce delay between polling time, it's way too high in Hostboot, responses come much faster (like thousand time faster). Change-Id: Ic61fd454ced363731b458d83831f10dba27ebb92 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2b2917c
to
0a38d75
Compare
If I drop Also, the gain from reading OCC once is more than was expected: 558ms. |
Prevents bad things from happening later when these new nodes are used. This issue is hard to observe because: 1. Heap is zero-initialized, so you need to use and then free() memory. 2. free() inserts only one last malloc'ed block. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: If3acd996d74406ed20a7f1ab143e007014345419 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
After that fix reading OCC once works as expected. |
Measured time it takes |
Apart from CPU-specific SCOM accesses, this re-organizes 21.1 to start multiple OCCs.